package com.pingan.internal.point.shopping.controller.response;

import java.util.List;

public class DataPageList<T> {

    private int pageNum;
    private int size;
    private long total;
    private List<T> dataList;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getDataList() {
        return dataList;
    }

    public void setDataList(List<T> dataList) {
        this.dataList = dataList;
    }


    public void putList(List<T> dataList){
        this.setTotal(dataList.size());
        this.setSize(dataList.size());
        this.setPageNum(1);
        this.setDataList(dataList);
    }
}
